package com.qf.servlet;

import javax.servlet.AsyncContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.rmi.RemoteException;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/20 11:40
 */
@WebServlet("/test1")
public class TestServlet1 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


        AsyncContext asyncContext = req.startAsync();
        asyncContext.start(new TestService());
        System.out.println("TestServlet1.doGet执行了");


    }
}
